{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><a href="{:url('busicard/index')}"><strong>名片列表</strong></a></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">	
			<div class="form-group">
				    &nbsp;&nbsp;
					店铺名称<input type="text" id="title" name="title" value="" placeholder="请输入店铺名称" class="bank" />
					手机号<input type="text" id="mobile" name="mobile" value="" placeholder="请输入手机号" class="bank" />
					时间<input id='start_time' name='start_time'  style="width: 100px;" onclick='WdatePicker()' type='text' placeholder="开始时间" class="bank" />
					<input id='end_time' name='end_time'  style="width: 100px;" onclick='WdatePicker()' type='text' placeholder="结束时间" class="bank" />
					<span class="bank"><button type="submit" class="btn btn-sm btn-primary"> 查询</button> </span>
			</div>
		</from>
	</div>
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">
        <div class="example-wrap">
            <div class="example">
                <table class="table table-bordered table-hover">
                    <thead>
                        <tr class="long-tr">
                        	<th>ID</th>
                            <th>店铺名称</th>
                            <th>标题</th>
                            <th>店铺LOGO</th>
                            <th>手机号</th>
                            <th>行业</th>
                            <th>QQ号</th>
							<th>微信号</th>
							<th>时间</th>
                            <th>操作</th>

                        </tr>
                    </thead>
                    <tbody id="list">
                    	{volist name="list" id='ad'}
                    	<tr>
                    		<td>{$ad.id}</td>
                    		<td>{$ad.name}</td>
                    		<td>{$ad.name}</td>
                        	<td><img src="{$ad.thumb}" width="50px"/></td>
                    		<td>{$ad.servicephone}</td>
                    		<td>
                    			{if $ad.trade_id==1}化妆品
                    			{elseif $ad.trade_id==2}水果
                    			{else}其他行业
                    			{/if}                   			
                    		</td>
                    		<td>{$ad.qqnum}</td>
                    		<td>{$ad.wechatnum}</td>
                    		<td>{$ad.add_time}</td>
                    		<td><a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
								<i class="fa fa-trash-o"></i> 删除</a>
                    		</td>
                    	</tr>
                    	{/volist}
                    </tbody>
                </table>
              	<div style="text-align: right;">
                  	{$list->render()}
       		 	</div>
            </div>
        </div>
        </div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}